Optimal. Leaf size=24 \[ \frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3299, 3852, 8,
2718} \begin {gather*} \frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2718
Rule 3299
Rule 3852
Rubi steps
\begin {align*} \int \text {csch}^2(c+d x) \left (a+b \sinh ^3(c+d x)\right ) \, dx &=-\int \left (-a \text {csch}^2(c+d x)-b \sinh (c+d x)\right ) \, dx\\ &=a \int \text {csch}^2(c+d x) \, dx+b \int \sinh (c+d x) \, dx\\ &=\frac {b \cosh (c+d x)}{d}-\frac {(i a) \text {Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{d}\\ &=\frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 35, normalized size = 1.46 \begin {gather*} \frac {b \cosh (c) \cosh (d x)}{d}-\frac {a \coth (c+d x)}{d}+\frac {b \sinh (c) \sinh (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.83, size = 48, normalized size = 2.00
method | result | size |
risch | \(\frac {b \,{\mathrm e}^{d x +c}}{2 d}+\frac {b \,{\mathrm e}^{-d x -c}}{2 d}-\frac {2 a}{d \left ({\mathrm e}^{2 d x +2 c}-1\right )}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 47, normalized size = 1.96 \begin {gather*} \frac {1}{2} \, b {\left (\frac {e^{\left (d x + c\right )}}{d} + \frac {e^{\left (-d x - c\right )}}{d}\right )} + \frac {2 \, a}{d {\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 40, normalized size = 1.67 \begin {gather*} -\frac {a \cosh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + a\right )} \sinh \left (d x + c\right )}{d \sinh \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sinh ^{3}{\left (c + d x \right )}\right ) \operatorname {csch}^{2}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 59 vs.
\(2 (24) = 48\).
time = 0.41, size = 59, normalized size = 2.46 \begin {gather*} \frac {b e^{\left (d x + c\right )} + \frac {b e^{\left (2 \, d x + 2 \, c\right )} - 4 \, a e^{\left (d x + c\right )} - b}{e^{\left (3 \, d x + 3 \, c\right )} - e^{\left (d x + c\right )}}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 47, normalized size = 1.96 \begin {gather*} \frac {b\,{\mathrm {e}}^{-c-d\,x}}{2\,d}-\frac {2\,a}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}+\frac {b\,{\mathrm {e}}^{c+d\,x}}{2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________